package com.woniuxy.user.feign;

import com.woniuxy.entity.UploadResult;
import com.woniuxy.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("campus-oss")
public interface OssFeignClient {
    @PostMapping("/oss/upload")
    public ResponseData<UploadResult> upload(@RequestParam("file") MultipartFile file) ;
}
